import ReactDOM from 'react-dom/client'
// 导出初始化样式和我们自定义的样式
import 'normalize.css'
import './assets/css/index.less'
// 导入路由
import { RouterProvider } from 'react-router-dom'
import router from './router'
// 导入我们创建的store
import store from './store'
// 导入store提供组件Provider
import { Provider } from 'react-redux'

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)

root.render(
  // 提供store数据
  <Provider store={store}>
    {/* 路由绑定 */}
    <RouterProvider router={router} />
  </Provider>
)
